/**
* component: Attachment
* prefix: .mui-attachment
*/
.mui-relateSheet {
  display: inline-block;
  font-size: 13px;
  min-height: 36px;
  width: 100%;
  .mui-sheetList {
    margin-top: 6px;
    list-style-type: none;
    padding: 0;
    & > .relateRecordItem {
      display: flex;
      border-radius: 3px;
      margin-bottom: 10px;
      position: relative;
      background: #f0f0f0;
      padding-left: 10px;
      &:after {
        content: "";
        display: block;
        height: 0;
        clear: both;
      }
      &:last-child {
        margin-bottom: 6px;
      }

      & > .type-icon {
        width: 18px;
        height: 20px;
        padding: 8px 9px;
        & > i {
          display: block;
          width: 18px;
          height: 20px;
          font-size: 16px;
          line-height: 20px;
          text-align: center;
          color: #9e9e9e;
        }
      }

      & > a {
        flex: 1;
        display: flex;
        box-sizing: border-box;
        height: 36px;
        padding: 8px 11px;
        padding-left: 0;
        font-size: 14px;
        line-height: 20px;
        text-decoration: none;
        color: #333;
        overflow: hidden;
        & > span {
          display: block;
          height: 20px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          &.link-name {
            flex: 1;
          }
          &.text-a,
          &.text-b {
            max-width: 40%;
            padding-left: 16px;
            box-sizing: border-box;
            color: #333 !important;
          }
        }
      }

      & > .user-img {
        width: 24px;
        height: 24px;
        padding: 6px;
        float: right;

        img {
          display: block;
          width: 24px;
          height: 24px;
          border-radius: 50%;
        }
      }

      & > .Icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
        line-height: 20px;
        text-align: center;
        color: #8f9093;
        position: absolute;
        top: -10px;
        right: -10px;
        cursor: pointer;
        display: none;
      }
      &:hover > .Icon {
        display: block;
      }
    }
  }

  .mui-addRecord {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background-color: #fff;
    font-size: 13px;
    line-height: 20px;
    padding: 8px 12px 7px;
    padding-left: 0;
    color: #888;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;

    & > .Icon {
      display: inline-block;
      width: 20px;
      height: 20px;
      margin-right: 4px;
      text-align: center;
      font-size: 14px;
      line-height: 18px;
      vertical-align: middle;
    }
    & > span {
      display: inline-block;
      vertical-align: middle;
    }
  }
  .relateRecord {
    position: fixed;
    height: 290px;
    background: #fff;
    z-index: 14;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
    width: 480px;
    box-sizing: border-box;
    .close {
      top: 5px;
      right: 5px;
    }
    .relateSearchInput {
      margin-left: 20px;
      margin-right: 20px;
      border-bottom: 1px solid #ddd;
      height: 45px;
      width: 440px;
      line-height: 45px;
      box-sizing: border-box;
      margin-bottom: 6px;
      input {
        border: 0;
        width: 368px;
      }
    }
    .noneContent {
      width: 480px;
      height: 197px;
      padding-top: 61px;
      box-sizing: border-box;
      .icon {
        color: #e0e0e0;
      }
    }
    .recordList {
      width: 480px;
      height: 197px;
      .recordItem {
        height: 42px;
        line-height: 42px;
        width: 100%;
        padding-left: 20px;
        box-sizing: border-box;
        &:hover {
          color: #fff !important;
          .Icon {
            color: #fff !important;
          }
        }
        .recordName {
          display: inline-block;
          max-width: 430px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }
    .newRecord {
      height: 40px;
      line-height: 40px;
      margin-left: 20px;
      margin-right: 20px;
      border-top: 1px solid #ddd;
      width: 440px;
      box-sizing: border-box;
    }
  }
}
